﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Nop.Core.Domain.Catalog;
using Nop.Services.Shops;
using Nop.Web.Models.Shop;

namespace Nop.Web.Controllers
{
    public class ShopController : Controller
    {
        private IShopService _shopService;

        public ActionResult List()
        {
            return View();
        }


        public ActionResult Shop(int shopId)
        {

            var shop = _shopService.GetShopById(shopId);
            if(shop == null)
            {
                return RedirectToRoute("HomePage");
            }

            return null;

        }

        [NonAction]
        protected ShopViewModel PrepareShopViewModel(Product product)
        {
            return null;
        }
    }
}
